package com.sheng.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.sheng.model.OrderModel;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderMapper {

	@Select("insert into biz_order("
    		+ "order_no, total_amount, paid_amount, user_id, user_name,user_no, phone, merchant_id, merchant_name,merchant_tel,order_status,create_time) "
			+ "values (#{orderNo},#{totalAmount},#{paidAmount},#{userId},#{userName},#{userNo},#{phone},#{merchantId},#{merchantName},#{merchantTel},#{orderStatus},now())")
void createOrder(@Param("orderNo") String orderNo,
	@Param("totalAmount") String totalAmount,
	@Param("paidAmount") String paidAmount,
	@Param("userId") Integer userId,
	@Param("userName") String userName,
	@Param("userNo") Integer userNo,
	@Param("phone") Integer phone,
	@Param("merchantId") Integer merchantId,
	@Param("merchantName") String merchantName,
	@Param("merchantTel") Integer merchantTel,
	@Param("orderStatus") String orderStatus);
}
